﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Query.SportBusiness.CompetitionGroupingInfo
{
    /// <summary>
    /// 增加比赛项目分组请求
    /// </summary>
    public class AddCompetitionGroupingInfoQuery
    {
        /// <summary>
        /// 参赛团队信息Id
        /// </summary>
        public Guid? CompeteTeamId { get; set; }

        /// <summary>
        /// 参赛团队人员信息
        /// </summary>
        public List<GroupCompeteTeamInfo> CompeteTeamInfos { get; set; }

        /// <summary>
        /// 参赛用户ID
        /// </summary>
        public Guid? EmployeeId { get; set; }

        /// <summary>
        /// 比赛号位
        /// </summary>
        public int? NoLocation { get; set; }

        /// <summary>
        /// 传感器
        /// </summary>
        public string Sensor { get; set; }
    }

    /// <summary>
    /// 参赛团队成员信息
    /// </summary>
    public class GroupCompeteTeamInfo
    {
        /// <summary>
        /// 参赛用户Id
        /// </summary>
        public Guid EmployeeId { get; set; }

        /// <summary>
        /// 传感器
        /// </summary>
        public string Sensor { get; set; }
    }

    /// <summary>
    /// 保存比赛分组信息
    /// </summary>
    public class AddGroupInfoListsQuery
    {
        /// <summary>
        /// 比赛项目ID
        /// </summary>
        public Guid CompetitionProjectId { get; set; }
        /// <summary>
        /// 比赛场次ID
        /// </summary>
        public Guid? EventsSessionId { get; set; }

        /// <summary>
        /// 组名
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 组员信息
        /// </summary>
        public List<AddCompetitionGroupingInfoQuery> Grouplist { get; set; }
    }

    /// <summary>
    /// 判断当前项目是否存在分组信息
    /// </summary>
    public class JudgeGroupinfoByEventsIdQuery
    {
        /// <summary>
        /// 赛事项目ID
        /// </summary>
        public Guid ProjectId { get; set; }
    }

    /// <summary>
    /// 根据场次ID获取当前场次的分组信息
    /// </summary>
    public class GetGroupInfoListByEventSessionIdQuery
    {
        /// <summary>
        /// 场次ID
        /// </summary>
        public Guid EventSessionId { get; set; }
    }
}
